When you print and IDLE window to capture a script on paper or even as a pdf file output, you do not get the CSS colors that highlight classes, variables, comments, imports, etc. Does anyone know a way in which to accomplish this? I have been trying to use a module named IDLE2HTML but there appears to be a problem with some class calls that are in a non-existant module.
You must be logged in to post. Please login or register an account.
After I replied to your other thread, it looks like you figured out most of it. For what you want, check out:
https://github.com/google/code-prettify
That's what I use here on pythonprogramming.net for these purposes. Read the readme, you just need to have that script tag, then you use the pre tags around code.
-Harrison 7 years ago
You must be logged in to post. Please login or register an account.